package com.yanqu.road.entity.activity.hongxian;

import com.alibaba.fastjson.annotation.JSONField;

import java.util.Map;

/**
 * 自选、随机奖励
 */
public class HongXianReward {

    //奖池id
    private int id;

    //统计奖励选择次数
    private Map<String, Integer> got;

    //当前自选
    private String select = "";

    //当前进度
    private int val;

    //总次数
    private int total;

    /**
     * 上一次选择
     */
    private String lastSelect = "";

    //临时进度
    @JSONField(deserialize = false, serialize = false)
    private int tempVal;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Map<String, Integer> getGot() {
        return got;
    }

    public void setGot(Map<String, Integer> got) {
        this.got = got;
    }

    public int getVal() {
        return val;
    }

    public void setVal(int val) {
        this.val = val;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public String getSelect() {
        return select;
    }

    public void setSelect(String select) {
        this.select = select;
    }

    public int getTempVal() {
        return tempVal;
    }

    public void setTempVal(int tempVal) {
        this.tempVal = tempVal;
    }

    public int getCalVal(){
        return this.val + this.tempVal;
    }

    public String getLastSelect() {
        return lastSelect;
    }

    public void setLastSelect(String lastSelect) {
        this.lastSelect = lastSelect;
    }
}
